package com.lh.service.impl;

import com.lh.dao.OrdersDao;
import com.lh.entity.Orders;
import com.lh.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: LuoHang
 * @Date: 2021/9/2 21:39
 * @Description
 */
@Service
public class OrdersServiceImpl implements OrdersService {
    @Autowired
    private OrdersDao ordersDao;

    @Override
    public List<Orders> getOrders(Map<String, Object> map) {
        return ordersDao.getOrders(map);
    }

    @Override
    public Orders getOrdersById(Map<String, Object> map) {
        return ordersDao.getOrdersById(map);
    }

    @Override
    public int addOrders(Orders orders) {
        return ordersDao.addOrders(orders);
    }

    @Override
    public int deleteOrdersById(Integer id) {
        return ordersDao.deleteOrdersById(id);
    }

    @Override
    public int updateOrders(Map<String, Object> map) {
        return ordersDao.updateOrders(map);
    }

    @Override
    public Orders getOrderByOrderNum(String orderNumber) {
        return ordersDao.getOrderByOrderNum(orderNumber);
    }
}
